<?xml version="1.0" encoding="utf-8" ?>
<TestCase testName="Test_02_ApplicationStatus">

	<TestSetup>
		<TestStep assemblyPath="BizUnitExtensions.dll" typeName="BizUnit.Extensions.ContextPopulateStep">
			<ContextLoad contextKey="connectionString" keyValue="Integrated Security=SSPI;database=BizTalkMgmtDb;server=AGILISYS29147\SQLEXPRESS" dataType="String" />
		</TestStep>


	</TestSetup>
   
	<TestExecution>
			<!-- Ensure application is stopped pre-test-->
		<TestStep assemblyPath="BizUnitExtensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ApplicationConductorStep" failOnError="false">
			<DelayForCompletion>5</DelayForCompletion> 
    		<ApplicationName>CBRApplication</ApplicationName>
    		<ConnectionString takeFromCtx="connectionString"></ConnectionString>
			<Action>Stop</Action>
		 </TestStep>
		 
	  <TestStep assemblyPath="BizUnitExtensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ApplicationStatusStep">
    		<ApplicationName>CBRApplication</ApplicationName>
		  <ConnectionString takeFromCtx="connectionString"></ConnectionString>
			  <Status>Stopped</Status>
     </TestStep>
    
		 <TestStep assemblyPath="BizUnitExtensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ApplicationConductorStep">
			<DelayForCompletion>5</DelayForCompletion> 
    		<ApplicationName>CBRApplication</ApplicationName>
    		<ConnectionString takeFromCtx="connectionString"></ConnectionString>
			<Action>Start</Action>
		 </TestStep>
		 
		 <TestStep assemblyPath="BizUnitExtensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ApplicationStatusStep">
    		<ApplicationName>CBRApplication</ApplicationName>
    		<ConnectionString takeFromCtx="connectionString"></ConnectionString>
    		<Status>Started</Status>
     </TestStep>
    </TestExecution>
    
    <TestCleanup>
    </TestCleanup>    

</TestCase> 
 
